﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cms/Admin.Master" AutoEventWireup="true"
    CodeBehind="AdminLogin.aspx.cs" Inherits="Aij1.Cms.AdminLogin" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        if (self != top) { top.location = self.location; }
    </script>
    <script type="text/javascript">
        function btnSubmit_Click(s, e) {
            callback.PerformCallback();
            btnSubmit.SetEnabled(false);
        }

        function callback_Complete(s, e) {
            lblTips.SetText(e.result);
            if (e.result == '') {
                location = '';
            }
            else {
                txtPassword.SetText('');
                txtCheckCode.SetText('');
                reloadCheckCodeImage();
                btnSubmit.SetEnabled(true);
            }
        }

        function reloadCheckCodeImage() {
            document.getElementById('imgChkCode').src += 1;
        }
    </script>
</asp:Content>
<asp:Content ID="CT2" ContentPlaceHolderID="PH" runat="server">
    <div style="margin: 15% auto; width: 500px;">
        <table width="100%">
            <tr>
                <td width="60" valign="bottom" colspan="2">
                    &nbsp;<img alt="" src="../images/logo.gif" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <h3>
                        后台管理系统登录</h3>
                </td>
            </tr>
            <tr>
                <td width="60">
                    用户名:
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtUserName" runat="server" Width="170px" ClientInstanceName="txtUserName">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    密码:
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtPassword" runat="server" Width="170px" ClientInstanceName="txtPassword"
                        Password="True">
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <div style="float: left; padding-right: 1em;">
                        <dx:ASPxButton ID="btnSubmit" runat="server" AutoPostBack="False" Text="登录" ClientInstanceName="btnSubmit">
                            <ClientSideEvents Click="btnSubmit_Click" />
                        </dx:ASPxButton>
                    </div>
                    <div style="float: left; padding-top: 0.3em">
                        <dx:ASPxLabel ID="lblTips" runat="server" ClientInstanceName="lblTips" CssClass="tips">
                        </dx:ASPxLabel>
                    </div>
                    <dx:ASPxCallback ID="ASPxCallback1" runat="server" ClientInstanceName="callback"
                        OnCallback="ASPxCallback1_Callback">
                        <ClientSideEvents CallbackComplete="callback_Complete" />
                    </dx:ASPxCallback>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
